from .config import ConfValue

class DatabaseValue(ConfValue):
    __tag__ = "database"

class CONF():
    REDIS_CELERY          = DatabaseValue("REDIS_CELERY",   "redis_celery",   default="redis://redis.com/7")

    MYSQL_HOSTNAME        = DatabaseValue("MYSQL_HOSTNAME", "MYSQL_HOSTNAME", default="mysql.com")
    MYSQL_PORT            = DatabaseValue("MYSQL_PORT",     "MYSQL_PORT",     default=3306)
    MYSQL_USERNAME        = DatabaseValue("MYSQL_USERNAME", "MYSQL_USERNAME", default="root")
    MYSQL_PASSWORD        = DatabaseValue("MYSQL_PASSWORD", "MYSQL_PASSWORD", default="root")

    MONGO_HOSTNAME        = DatabaseValue("MONGO_HOSTNAME", "MONGO_HOSTNAME", default="mongo.com")
    REDIS_HOSTNAME        = DatabaseValue("REDIS_HOSTNAME", "REDIS_HOSTNAME", default="redis.com")

    REDIS_CACHE           = DatabaseValue("REDIS_CELERY",   "redis_celery",   default="redis://redis.com/0")



